package com.smartEdu.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.smartEdu.dao.ChapterDao;
import com.smartEdu.mapper.ChapterMapper;
import com.smartEdu.mapper.CourseCategoryMapper;
import com.smartEdu.model.ChapterChildModel;
import com.smartEdu.model.ChapterModel;

@Repository(value="chapterDaoImpl")
public class ChapterDaoImpl implements ChapterDao{
	
	@Autowired(required=false)
	@Qualifier("chapterMapper")
	private ChapterMapper chapterMapper;

	@Override
	public List<ChapterModel> getChapter(String pk) {
		// TODO Auto-generated method stub
		return chapterMapper.getChapter(pk);
	}

	@Override
	public List<ChapterChildModel> getChapterChild(String pk) {
		// TODO Auto-generated method stub
		return chapterMapper.getChapterChild(pk);
	}

}
